package top.yuzt.animalserver.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.yuzt.animalserver.entity.User;

/**
 * <p>
 * 管理员 Mapper 接口
 * </p>
 *
 * @author yuzt
 * @since 2024-05-15
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT * FROM user WHERE username = #{username}")
    User findByUsername(String username);
}
